public class Student extends Person
{
	private String studentID;
	private double gPA;
	private String advisor;
	private String major;
	public Student(String s, double g, String a, String m, Person person)
	{
		super(person.getFirstName(), person.getMiddleOfName(),person.getLastName(),person.getSSN());
		studentID=s;
		gPA=g;
		advisor=a;
		major=m;
	}
	public String getSID()
	{
		return studentID;
	}
	public void setGPA(double g)
	{
		gPA=g;
	}
	public double getGPA()
	{
		return gPA;
	}
	public String getAdvisor()
	{
		return advisor;
	}
	public String getMajor()
	{
		return major;
	}
	@Override public String toString()
	{
		return "Student ID: "+getSID()+"\nGPA: "+getGPA()+"\nAdvisor: "+getAdvisor()+"\nMajor: "+getMajor();
	}
	@Override public boolean equals(Object ob)
	{
		if(ob.getClass()==Student.class)
		{
			Student temp=(Student) ob;
			if(temp.getSID()==this.getSID())
			{
				return true;
			}
			else 
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
	@Override public int hashCode()
	{
		return this.getSID().hashCode();
	}
}